import scrapy
import time
import scrapy_fingerprint


class BossSpider(scrapy.Spider):
    name = "boss"


    async def start(self):
        url = f'https://www.zhipin.com/wapi/zpgeek/pc/recommend/job/list.json?page=1&pageSize=15&city=101180100&encryptExpectId=&mixExpectType=&expectInfo=&jobType=&salary=&experience=&degree=&industry=&scale=&_={int(time.time()*1000)}'
        yield scrapy.Request(url,cookies={
            'ab_guid': '57c1ce04-759b-4fdf-b676-177723f5b80c',
            'Hm_lvt_194df3105ad7148dcf2b98a91b5e727a': '1762772711',
            'Hm_lpvt_194df3105ad7148dcf2b98a91b5e727a': '1762774144',
            'HMACCOUNT': '8853D7582B69A924',
            '__g': '-',
            '__zp_stoken__': '812fNjbDmcK1woXCuTsuCgsJBw86KDU2LRY7NiI1Njw2Nj84OjY2NxY4JsOfwr86w64mXsOMPTMjNj89MzY8PzY%2BEzYzxLTCuDc3KMKlwrM6w6svXsOICRoQRwQLCW3CtgRCwrY4KCbCtjU8PTgNwrnCvMK8KMK5wrXCtSXCtMK1wrw8NTg1K0BbU1pZQDVHRFgKQ1tFXlRPBkxMRSM4Ojc%2FwoDCozA4AgsOCwsGDwoPDwUMEQUFAgsOCwsOBwIHByc2wpTCtcK6w5TFtH%2FDpMSXwp3CqMO8wrTCmsOBwrvCvMOyw4HCmkfChGTCjcKpwp7CvsKowqnCk2nCp1VQR1VWVsK%2Fwp1xW3hoRkdPwrxHRFZRQgsCDAoLOQTDhGHDgw%3D%3D',
        })

    def parse(self, response):
        print(response.json())
